package com.yang.designmode.proxy.staticProxy;

//测试类
public class CommonTest {
    public static void main(String[] args) {
        //创建代理对象
        CommonServiceImpl target = new CommonServiceImpl();
        //获取代理对象
        CommonProxy proxy = new CommonProxy(target);
        //通过代理对象执行方法
        System.out.println(proxy.doThing());
    }
}
